package com.itheima.admin.mapper;

import com.itheima.admin.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    public abstract List<User> selectAllUser();

    public abstract void insertUser(@Param("user") User user);
    public abstract void insertScore();
    public abstract List<Integer> selectScoreId();
    public abstract void insertUserScoreKecheng(@Param("scoreIds") List<Integer> scoreIds,@Param("uid") Integer uid);

    public abstract Integer deleteUser(Integer id);

    public abstract Integer updateUser(@Param("user") User user,@Param("id") Integer id);

    public abstract User selectSingleUserById(Integer id);

    public abstract User selectSingleUserByStuID(String stuID);








    public abstract List<User> selectAllScore();

    public abstract User selectSingleScoreByStuID(String stuID);
}
